package edu.washington.ling.syntric.struct.rule;

import edu.washington.ling.syntric.struct.tree.Token;

public class UniDSPattern implements Comparable<UniDSPattern> {
	private Token dsToken;
	public UniDSPattern(Token t) {
		dsToken = t;
	}
	public void setDSToken(Token t){
		dsToken = t;
	}
	public Token getDSToken() {
		return dsToken;
	}
	public boolean equals(Object other){
		if (this == other){
			return true;
		}
		if (!(other instanceof UniDSPattern)) {
			return false;
		}
		UniDSPattern otherPattern = (UniDSPattern) other;
		return (dsToken.equals(otherPattern.getDSToken()));
	}
	public int hashCode() {
		return dsToken.hashCode();
	}
	public int compareTo(UniDSPattern otherPatt) {
		return dsToken.compareTo(otherPatt.dsToken);
	}
}
